<div class="row-fluid">
	<div class="span12">
		<div class="widget">
			<div class="widget-header">
				<span class="title">
					<i class="icol-table"></i> Bảng hiển thị danh sách các danh mục
				</span>
			</div>
			<div class="widget-content table-container">
				<table class="table table-striped">
					<thead>
						<tr>
							<th>Id</th>
							<th>Tên danh mục</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
					<?php foreach ($categories as $category): ?>
						<tr>
							<td><?php echo $category['category_id']; ?></td>
							<td><?php echo $category['name']; ?></td>
							<td class="action-col">
								<span class="btn-group">
									<a class="btn btn-small" href="#"><i class="icon-search"></i></a>
									<a class="btn btn-small" href="<?php echo base_url('backend/category/edit/' . $category['category_id']); ?>"><i class="icon-pencil"></i></a>
									<a class="btn btn-small" href="<?php echo base_url('backend/category/delete/' . $category['category_id']); ?>" onclick="return confirm('Bạn có chắc là muốn xóa?')" ><i class="icon-trash"></i></a>
								</span>
							</td>
						</tr>
					<?php endforeach; ?>
					</tbody>
				</table>
				<div class="pagination pagination-small pagination-centered">
					<ul><?php echo $this->pagination->create_links(); ?></ul>
				</div>
			</div>
		</div>
	</div>
</div>